var S_Chart = {
    _chartData: function (t, i, e, a) {
        var l = {
            xSplitLine: !1,
            xBoundaryGap: !0,
            color: ["#3daae3", "#2ed383", "#8b5c9b", "#f3d049", "#476cd0", "#3fa553", "#524a89", "#ec644c"],
            tooltip: {trigger: "item"},
            legend: [],
            legendSelectMode: !1,
            xAxis: [],
            yAxis: [{
                splitLine: {lineStyle: {color: "#EEEEEE"}},
                type: "value",
                axisLine: {show: !1},
                axisTick: {show: !1},
                axisLabel: {textStyle: {color: "#333333", fontSize: "11px"}},
                data: []
            }],
            series: [],
            xType: "category",
            xAxisLabel: {textStyle: {color: "#333333", fontSize: "11px"}}
        };
        if (e.xFormatDate && (l.xAxisLabel.formatter = function (t, i) {
                var e = new Date(t), a = [e.getMonth() + 1, e.getDate()];
                return a.join("/")
            }), e.xSplitLine && (l.xSplitLine = e.xSplitLine), e.color && (l.color = e.color), l.legendSelectMode = !!e.legendSelectMode && e.legendSelectMode, e.inverse && (l.yAxis[0].inverse = !0), e.yMin && (l.yAxis[0].min = e.yMin), e.yMax && (l.yAxis[0].max = e.yMax), l.xType = "category", l.tooltip.trigger = "axis", !l.legendSelectMode && e.tooltip) {
            for (var o = "{b}<br />", s = 0; s < e.tooltip.num; s++)o += '<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:' + l.color[s] + '"></span>{a' + s + "}: {c" + s + "}" + e.tooltip.unit + "<br />";
            l.tooltip.formatter = o
        }
        switch (t) {
            case"scatterType":
                l.xAxis = [{
                    gridIndex: 0,
                    min: 0,
                    max: e.xMax,
                    axisLine: {show: !1},
                    axisTick: {show: !1},
                    axisLabel: {show: !1}
                }], l.yAxis = [{
                    gridIndex: 0,
                    min: 0,
                    max: 100,
                    axisLine: {show: !1},
                    axisTick: {show: !1},
                    axisLabel: {show: !1}
                }], l.series = [{name: e.data.name, type: "scatter", data: e.data.data}], l.tooltip = {
                    show: !1,
                    trigger: "item",
                    formatter: function (t) {
                        return ""
                    }
                };
                break;
            case"scatter":
                l.xBoundaryGap = !1, l.tooltip = {
                    trigger: "item", formatter: function (t) {
                        if (t.value) {
                            var i = F_Industry_Common._cache.typeClassify[t.value[0]];
                            return F_Industry_Common._cache.typePlat[t.value[1]] + "(" + i + ")：" + t.value[2] + "%"
                        }
                    }
                }, l.xAxis = e.x_axis, l.yAxis[0].type = "category", l.yAxis[0].data = e.y_name;
                for (var r = e.y_axis, n = r.length, s = 0; s < n; s++)switch (n > 1 && l.legend.push(r[s].name), t) {
                    case"scatter":
                        l.series.push({
                            name: r[s].name, type: "scatter", symbolSize: function (t) {
                                return 2 * t[2]
                            }, data: r[s].data
                        })
                }
                e.yFormat && (l.yAxis[0].axisLabel.formatter = "{value}" + e.yFormat);
                break;
            case"line":
            case"lineActive":
                l.xAxis = e.x_axis;
                for (var r = e.y_axis, n = r.length, s = 0; s < n; s++) {
                    n > 1 && l.legend.push(r[s].name);
                    for (var c = 0; c < r[s].data.length; c++)r[s].data[c] = parseFloat(r[s].data[c]);
                    switch (t) {
                        case"line":
                            l.series.push({name: r[s].name, type: "line", data: r[s].data});
                            break;
                        case"lineActive":
                            l.series.push({name: r[s].name, type: "line", areaStyle: {normal: {}}, data: r[s].data})
                    }
                }
                e.yFormat && (l.yAxis[0].axisLabel.formatter = "{value}" + e.yFormat);
                break;
            case"bar":
                l.xAxis = e.x_axis;
                var r = e.y_axis, n = r.length;
                n > 1 && (l.tooltip.axisPointerType = "shadow");
                for (var s = 0; s < n; s++) {
                    n > 1 && l.legend.push(r[s].name);
                    for (var c = 0; c < r[s].data.length; c++)r[s].data[c] = parseFloat(r[s].data[c]);
                    switch (t) {
                        case"bar":
                            l.series.push({
                                name: r[s].name,
                                type: "bar",
                                data: r[s].data,
                                barMaxWidth: 15,
                                itemStyle: {normal: {barBorderRadius: 5}}
                            })
                    }
                }
                e.yFormat && (l.yAxis[0].axisLabel.formatter = "{value}" + e.yFormat);
                break;
            case"map":
                l.tooltip.trigger = "item", l.visualMap = {
                    min: 0,
                    max: e.visualMax,
                    left: "right",
                    top: "bottom",
                    text: ["高(%)", "低(%)"],
                    calculable: !0,
                    color: ["#51c7ef", "#91cfe4", "#dde7ea"]
                }, r = e.y_axis[0], l.series.push({
                    name: r.name,
                    type: "map",
                    mapType: "china",
                    label: {normal: {show: !1}, emphasis: {show: !0}},
                    roam: !1,
                    itemStyle: {
                        normal: {label: {show: !1}, borderWidth: 1, borderColor: "#ffffff"},
                        emphasis: {label: {show: !0}}
                    },
                    data: r.data
                }), l.legend = null
        }
        S_Chart._drawChart(t, i, l, a)
    }, _drawChart: function (t, i, e, a) {
        var l = {}, o = [];
        if (e.legend) {
            for (var s = 0; s < e.legend.length; s++)o.push({name: e.legend[s], icon: "roundRect"});
            l.legend = {left: "right", data: o, selectedMode: e.legendSelectMode}
        }
        switch (l.color = e.color, l.tooltip = e.tooltip, l.grid = {
            left: "30",
            right: "30",
            bottom: 0,
            top: "6%",
            containLabel: !0
        }, t) {
            case"map":
                l.visualMap = e.visualMap;
                break;
            default:
                l.xAxis = [{
                    splitLine: {show: e.xSplitLine, lineStyle: {color: "#EEEEEE"}},
                    boundaryGap: e.xBoundaryGap,
                    type: e.xType,
                    data: e.xAxis,
                    axisLine: {show: !1},
                    axisTick: {show: !1},
                    axisLabel: e.xAxisLabel
                }], l.yAxis = e.yAxis
        }
        l.series = e.series, B_Chart._getEChart(t, i, l, a)
    }
}, S_HeadFoot = {
    _htmlPaper: function () {
        var t = '            <div class="black-top"></div>            <div class="gray-bottom">                <ul>                    <li>                        <a href="sigma.html">                            <div class="top-img img-a"></div>                            <div class="mask-hover"></div>                            <img src="http://image.thinkinggame.cn/img/2.0/footer/sigma.png" alt="">                            <div class="des">                                <h2>核心技术</h2>                                <h3>Sigma底层核心系统</h3>                                <p> 为发现"暗数据"而生</p>                            </div>                        </a>                    </li>                    <li>                        <a href="company.html ">                            <div class="top-img img-b"></div>                            <div class="mask-hover"></div>                            <img src="http://image.thinkinggame.cn/img/2.0/footer/company.png" alt="">                            <div class="des">                                <h2>关于我们</h2>                                <h3>ThinkingData</h3>                                <p> 助力企业构造自己的人工智能</p>                            </div>                        </a>                    </li>                    <li>                        <a onclick="B_Login._openApplication();">                            <div class="top-img img-c"></div>                            <div class="mask-hover"></div>                            <img src="http://image.thinkinggame.cn/img/2.0/footer/huodong.png" alt="">                            <div class="des">                                <h2>最近活动</h2>                                <h3>闭门论剑</h3>                                <p> 申请参加</p>                            </div>                        </a>                    </li>                </ul>            </div>';
        $("#paperPart").html(t)
    }, _htmlLoginHeader: function (t) {
        return '            <div class="tg-header-wrap total-width ">                <div class="tg-navbar fl">                <i class="h-logo c-img"></i>                </div>                <div class="L-btn">                <span> ' + t + "</span>                </div>            </div>"
    }, _htmlLoginFooter: function () {
        return '<p>2015-2017 THINKINGGAME.CN 版权所有 <a href="http://www.miitbeian.gov.cn/" target="_blank">沪ICP备 15030552号</a></p>'
    }, _getLoginHead: function (t) {
        $("#headerPart").html(S_HeadFoot._htmlLoginHeader(t)), $("#LoginFooterPart").html(S_HeadFoot._htmlLoginFooter())
    }, _htmlHeadProductPop: function () {
        return '                <div class="hover-nav-white"></div>           ' +
            '     <div class="hover-nav-wrap">       ' +
            '             <ul class="nav-wrap">                 ' +
            '       <li class="title">智能运营平台</li>           ' +
            '             <li class="nav-list-hover nav-a hover-selected">         ' +
            '                   <i class="tg-icon-side side-4"></i><a href="javascript:void(0) ">智能分析</a>     ' +
            '                       <div class=" nav-hover-content">                    ' +
            '            <p>智能分析</p>                                <h4>聚焦关键玩家开展精准营销</h4>        ' +
            '                        <ul>                                    <li>                               ' +
            '         <img src="' + B_Common._cdnImgUrl() + '2.0/drop/1.jpg" alt="">               ' +
            '                         <p>定位不同玩家特点，设定迎合玩家需求的高效运营方式</p><button onclick="B_Jump._go(\'target\',\'operation\')">了解更多</button>                                    </li>                                    <li class="fr">                                        <img src="' + B_Common._cdnImgUrl() + '2.0/drop/2.jpg" alt="">                                        <p> 立即升级到智能运营分析平台</p>                                        <button onclick="B_Jump._go(\'target\',\'price\')">申请开通</button>                                    </li>                                </ul>                            </div>                        </li>                        <li class="nav-list-hover nav-b">          ' +
            '                  <i class="tg-icon-side side-2"></i><a href="javascript:void(0) ">运营指标</a>               ' +
            '             <div class=" nav-hover-content">                 ' +
            '               <p>运营指标</p>                        ' +
            '        <h4>数据支持决策改善游戏设计</h4>             ' +
            '                   <ul>                           ' +
            '         <li>                            ' +
            '        <img src="' + B_Common._cdnImgUrl() + '2.0/drop/3.jpg  " alt="">        ' +
            '                            <p>精准统计核心数据，挖掘游戏数据潜在价值，提升游戏运营效率</p>      ' +
            '                              <button onclick="B_Jump._go(\'target\',\'analysis\')">了解更多</button>        ' +
            '                            </li>                                    <li class="fr">                      ' +
            '              <img src="' + B_Common._cdnImgUrl() + '2.0/drop/4.jpg" alt="">                     ' +
            '               <p>立即升级到智能运营分析平台</p><button onclick="B_Jump._go(\'target\',\'price\')">申请开通</button>    ' +
            '                                </li>                         ' +
            '       </ul>                            </div>             ' +
            '           </li>                        <li class="nav-list-hover nav-c">        ' +
            '                    <i class="tg-icon-side side-3"></i>                   ' +
            '         <a href="javascript:void(0)">舆情雷达</a>                  ' +
            '          <div class=" nav-hover-content">                     ' +
            '           <p>舆情雷达</p>                         ' +
            '       <h4>洞悉市场反馈提升玩家体验</h4>          ' +
            '                      <ul>                          ' +
            '          <li>                              ' +
            '      <img src="' + B_Common._cdnImgUrl() + '2.0/drop/5.jpg" alt="">          ' +
            '                          <p>识别过亿玩家反馈内容，定位玩家多维度特征，轻松监测舆情变化</p>' +
            '<button onclick="B_Jump._go(\'target\',\'radar\')">了解更多</button>           ' +
            '                         </li>                                    <li class="fr">         ' +
            '                           <img src="' + B_Common._cdnImgUrl() + '2.0/drop/6.jpg" alt="">     ' +
            '                               <p>免费使用舆情雷达</p><button onclick="S_User._goVisit(\'outsideFaceSummary\')">免费使用</a></button>        ' +
            '                            </li>                                </ul>                            </div>                        </li>       ' +
            '                 <li class="title">智能运营专业服务</li>                        <li class="nav-list-hover nav-d">           ' +
            '                 <i class="tg-icon-side side-1"></i>                            <a href="professional.html ">专业服务</a>       ' +
            '                     <div class=" nav-hover-content">                                <p>专业服务</p>                        ' +
            '        <h4>人机结合的专业服务助您建立更好的游戏业务</h4>                                <ul>                      ' +
            '              <li>                                        <img src="' + B_Common._cdnImgUrl() + '2.0/drop/7.jpg" alt="">    ' +
            '                                    <p> 数据应用支持</p>                                 ' +
            '       <a href="item.html?k=13">数值合理性评估</a>               ' +
            '                     </li>                                    <li>                  ' +
            '                      <img src="' + B_Common._cdnImgUrl() + '2.0/drop/8.jpg" alt="">               ' +
            '                         <p> 智能运营方案</p>                             ' +
            '           <a href="item.html?k=9">付费点优化方案</a>                  ' +
            '                      <a href="item.html?k=8">玩家流失原因分析</a>          ' +
            '                          </li>                                    <li>        ' +
            '                                <img src=" ' + B_Common._cdnImgUrl() + '2.0/drop/9.jpg" alt="">               ' +
            '                         <p> 游戏战略咨询</p>                                        <a href="item.html?k=10">热门游戏解读报告</a>     ' +
            '                                   <a href="item.html?k=15">竞品游戏深度分析</a>                             ' +
            '           <a href="item.html?k=14">细分市场调研</a>                              ' +
            '      </li>                                </ul>                            </div>        ' +
            '                </li>                        <li class="title">核心系统</li>                 ' +
            '       <li class="nav-list-hover nav-e">                            <i class="tg-icon-side side-5"></i>          ' +
            '                  <a href="javascript:void(0)">Sigma<b class="tm-text">TM</b>系统</a>                  ' +
            '              <div class=" nav-hover-content">                                <p>Sigma<b class="tm-text">TM</b>系统</p>     ' +
            '                           <h4>为发现数据内在的关联而生</h4>                                <ul>                      ' +
            '              <li>                                        <img src="' + B_Common._cdnImgUrl() + '2.0/drop/10.jpg" alt="">           ' +
            '                             <p>Sigma通过机器学习、数据挖掘和自然语言处理等人工智能技术，帮助游戏企业发现潜在的核心玩家，以及隐藏性的关联，为玩家提供更个性化的游戏体验</p>                                        <button onclick="B_Jump._go(\'target\',\'sigma\')">了解更多</button>                                    </li>                                </ul>                            </div>                        </li>                    </ul>                </div>'
    }, _htmlHead: function (t) {
       // console.log("htmlHead xxx");
        var i = "";
        return i += '<div class="tg-navbar fl"><i class="h-logo c-img"></i>', i += '<ul class="b_relative">',
            i += '<li class="product-hover-nav" style="cursor: default;"',
            i += ">产品介绍</li>", i += "<li id=\"bs_head_m_light\" onclick=\"B_Jump._go('target','price')\"", i += ">产品定价</li>",
            i += '<li class="about-nav" style="cursor: default;"', i += ">行业洞察", i += '<div id="SubNav">',
            i += "<p><a onclick=\"B_Jump._go('target','guide')\">行业分析</a></p>",
            i += "<p><a onclick=\"B_Jump._go('base','" + B_Jump._getUrl("article") + "?t=classify&m=" + B_Common._encodeUrl("研发") + "')\">媒体透视</a></p>",
            i += "<p><a onclick=\"B_Jump._go('target','atlas')\">游戏图谱</a></p>",
            i += "</div>", i += "</li>",
            i += '<li class="about-nav" style="cursor: default;"', i += ">关于我们",
            i += '<div id="SubNav">',
            i += "<p><a onclick=\"B_Jump._go('target','company')\">公司介绍</a></p>",
            i += "<p><a onclick=\"B_Jump._go('target','join')\">加入我们</a></p>",
            i += "<p><a onclick=\"B_Jump._go('target','partner')\">合作伙伴</a></p>",
            i += "</div>", i += "</li>", i += "</ul>", i += "</div>"
    }, _getHead: function () {
        var t = '            <div class="header-wrap total-width">         ' +
            '       <div class="tf-navbar fl">            ' +
            '        <a href="index.html"><i class="h-logo c-img"></i></a>         ' +
            '           <ul>             ' +
            '           <li><span>产品</span>              ' +
            '              <div class="navbar-list"><i class="border-top"></i>            ' +
            '                    <ul>                    ' +
            '                <li><a href="' + B_Jump._getUrl("") + '">用户决策中心</a></li>                ' +
            '                    <li><a href="' + B_Jump._getUrl("") + '">智能运营平台</a></li>             ' +
            '                       <li><a href="' + B_Jump._getUrl("") + '">市场口碑监测</a></li>                 ' +
            '               </ul>                            </div>                        </li>                     ' +
            '   <li class="solving"><span>解决方案</span>                 ' +
            '           <div class="navbar-list"><i class="border-top"></i>                ' +
            '                <ul>                              ' +
            '      <li><a href="' + B_Jump._getUrl("analysissolution") + '">精细化运营解决方案</a></li>                    ' +
            '                <li><a href="' + B_Jump._getUrl("popluarsolution") + '">市场用研解决方案</a></li>              ' +
            '                      <li><a href="' + B_Jump._getUrl("professional") + '">游戏专项咨询服务</a></li>                ' +
            '                </ul>                            </div>                        </li>                ' +
            '        <li><span>数据洞察</span>                      ' +
            '      <div class="navbar-list"><i class="border-top"></i>                 ' +
            '               <ul>                          ' +
            '          <li><a href="' + B_Jump._getUrl("guide") + '">行业分析</a></li>          ' +
            '                          <li><a href="' + B_Jump._getUrl("article") + '">媒体透视</a></li>                ' +
            '                    <li><a href="' + B_Jump._getUrl("atlas") + '">游戏图谱</a></li>               ' +
            '                 </ul>                            </div>                        </li>              ' +
            '          <li><span>关于我们</span>                            <div class="navbar-list"><i class="border-top"></i>               ' +
            '                 <ul>                                    <li><a href="' + B_Jump._getUrl("company") + '">公司介绍</a></li>       ' +
            '                             <li><a href="' + B_Jump._getUrl("join") + '">加入我们</a></li>                       ' +
            '             <li><a href="' + B_Jump._getUrl("partner") + '">合作伙伴</a></li>                        ' +
            '        </ul>                            </div>                        </li>                    </ul>      ' +
            '          </div>                <div class="login-part fr">                    <ul>                     ' +
            '   <li>                ' +
            '            <form method="get" action="' + B_Jump._getUrl("search") + '">                       ' +
            //'         <input type="text" name="k" placeholder="搜索游戏、游戏资讯">                         ' +
           // '       <button type="submit" class="search-icon"></button></form>                  ' +
           // '          </form>                        </li>              ' +
            '          <li>         ' +
            '                   <button class="login-btn" id="bs_user_status"></button>            ' +
            '            </li>                     ' +

            '      </ul>                </div>            </div>';

        $("#NewheaderPart").html(t), S_User._formatStatus(), this._getFoot(), $("#NewheaderPart .reg-btn").click(function () {
            B_Jump._go("base", "demo.html#/operateBasic/")
        }), $("#NewheaderPart form").submit(function () {
            var t = $.trim($('#NewheaderPart input[name="k"]').val());
            return "" != t || (B_Pop._init("msg", {content: "搜索关键词必须填写,请确认！"}), !1)
        }), $(".h-logo").click(function () {
            B_Jump._go("target", "index")
        })
    }, _getFoot: function () {
        var t = '            <div class="wrap">                <div class="fl">                    <ul>      ' +
            '                  <li class="title">产品</li>                   ' +
            '     <li><a href="' + B_Jump._getUrl("") + '">用户决策中心</a></li>          ' +
            '              <li><a href="' + B_Jump._getUrl("") + '">智能运营平台</a></li>          ' +
            '              <li><a href="' + B_Jump._getUrl("") + '">市场口碑监测</a></li>               ' +
            '     </ul>                    <ul>                        <li class="title">解决方案</li>      ' +
            '                  <li><a href="' + B_Jump._getUrl("") + '">精细化运营解决方案</a></li>      ' +
            '                  <li><a href="' + B_Jump._getUrl("") + '">市场用研解决方案</a></li>       ' +
            '                 <li><a href="' + B_Jump._getUrl("") + '">游戏专项咨询服务</a></li>          ' +
            '          </ul>                    <ul>                        <li class="title">数据洞察</li>            ' +
            '            <li><a href="' + B_Jump._getUrl("") + '">行业分析</a></li>                ' +
            '        <li><a href="' + B_Jump._getUrl("") + '">媒体透视</a></li>                   ' +
            '     <li><a href="' + B_Jump._getUrl("") + '">游戏图谱</a></li>          ' +
            '          </ul>                    <ul>               ' +
            '         <li class="title">关于我们</li>           ' +
            '             <li><a href="' + B_Jump._getUrl("") + '">公司介绍</a></li>        ' +
            '                <li><a href="' + B_Jump._getUrl("") + '">加入我们</a></li>      ' +
            '                  <li><a href="' + B_Jump._getUrl("") + '">合作伙伴</a></li>    ' +
            '                </ul>                </div>                <div class="fr">              ' +
            '      <img src="/img/f-logo.png" alt="">                    <h3>数数信息科技（上海）有限公司</h3>          ' +
            '          <div class="code-wrap">                        <img src="/img/code.jpg" alt="">             ' +
            '           <ul>                            <li onclick="B_Jump._go(\'\',\'' + B_Common._qqUrl() + '\')"><img src="/img/f-service.png" alt="">在线客服</li>                            <li><img src="/img/f-email.png" alt="">service@thinkingdata.cn</li>                            <li><img src="/img/f-address.png" alt="">上海市长宁区中山西路999号1203室</li>                        </ul>                    </div>                    <p>2015-2017 THINKINGGAME.CN 版权所有  <a href="http://www.miitbeian.gov.cn/" target="_blank">沪ICP备 15030552号</a></p>                </div>            </div>';
        $("#NewFooterPart").html(t)
    }, _productHoverShow: function () {
        $(".hover-nav").hide(), $(".product-hover-nav").hover(function () {
            $(".hover-nav").show()
        }, function () {
            $(".hover-nav").hide()
        }), $(".hover-nav").hover(function () {
            $(".hover-nav").show()
        }, function () {
            $(".hover-nav").hide()
        }), $("#headerPartProductPop .nav-list-hover").each(function (t) {
            $(this).hover(function () {
                $(this).addClass("hover-selected").siblings(".nav-list-hover").removeClass("hover-selected"), $(this).find(".nav-hover-content").show(), $(this).siblings(".nav-list-hover").find(".nav-hover-content").hide();
                $("#headerPartProductPop .tg-icon-side");
                $("#headerPartProductPop .tg-icon-side").each(function (i) {
                    switch (i + "") {
                        case"0":
                            i == t ? $(this).css("background-position", "0 -20px") : $(this).css("background-position", "0 0");
                            break;
                        case"1":
                            i == t ? $(this).css("background-position", "-20px -20px") : $(this).css("background-position", "-20px 0");
                            break;
                        case"2":
                            i == t ? $(this).css("background-position", "-40px -20px") : $(this).css("background-position", "-40px 0");
                            break;
                        case"3":
                            i == t ? $(this).css("background-position", "-60px -20px") : $(this).css("background-position", "-60px 0");
                            break;
                        case"4":
                            i == t ? $(this).css("background-position", "-80px -20px") : $(this).css("background-position", "-80px 0")
                    }
                })
            })
        })
    }, _productHoverClick: function () {
        $(".tf-tab-change li").on("click", function () {
            var t = $(this).attr("href");
            $(".tf-tab-change li").removeClass("selected"), $(this).addClass("selected"), $(".content").css("display", "none"), $(t).css("display", "block")
        })
    }
}, S_User = {
    _goVisit: function (t) {
        B_User._isDemoUser() ? B_Login._openLogin(t) : B_Jump._go("target", t)
    }, _freeCheck: function () {
        var t = B_Cookie._get("ApplicationAppInit");
        t && 1 == t && (B_User._isDemoUser() || S_User._freeApp(), B_Cookie._del("ApplicationAppInit"))
    }, _freeApp: function () {
        B_User._isDemoUser() ? (B_Login._openLogin(), B_Cookie._set("ApplicationAppInit", 1)) : B_Port._ajax("userApplicationFree", "post", !0, null, function () {
            B_Pop._init("load", {type: 1, time: 60, shade: [.6, "#000000"]})
        }, function () {
            B_Pop._init("close")
        }, function (t, i) {
            B_Pop._init("msg", {content: "恭喜您获得六个月的免费使用特权，可直接在后台使用服务！"})
        }, function (t, i, e) {
            B_Pop._init("msg", {content: i})
        })
    }, _formatStatus: function (t) {
        var i = $("#bs_user_status");
        console.log("首页",B_User._isDemoUser())
        if (B_User._isDemoUser()) {
            if (i.text("进入控制台").click(function () {
                    B_Jump._go("target", "login")
                }), t)switch (t) {
                case"user":
                    B_User._isDemoUser() && B_Jump._go("target", "login")
            }
        } else i.text("控制台").click(function () {
            B_Jump._go("open", "login")
        })
    }
}, S_Game = {
    _goRelation: function () {
        $(".bs_relation_app").each(function () {
            $(this).click(function () {
                var t = $(this).attr("data-t");
                B_User._isDemoUser() ? B_Login._openLogin(t) : B_Jump._go("target", t)
            })
        })
    }, _chooseGame: function (t, i, e) {
        function a(t, i) {
            for (var e = 0; e < t.length; ++e)if ("," != t[e] && i.indexOf(t[e]) >= 0)return !0;
            return !1
        }

        var l = t;
        l.html("");
        var o = S_Game._letter(e), s = B_Game._classify(i), r = B_Login._user;
        if (!r.gas_projects)return !1;
        for (var r = r.gas_projects, n = {}, c = !1, _ = 0; _ < r.length; ++_)if (a(s, r[_].game_type) && a(o, r[_].pinyin)) {
            c = !0;
            for (var m = 0; m < r[_].pinyin.length; ++m)"," != r[_].pinyin[m] && (r[_].pinyin[m]in n ? n[r[_].pinyin[m]].push(r[_]) : n[r[_].pinyin[m]] = [r[_]])
        }
        var p = "";
        if (c) {
            for (var _ = 0; _ < o.length; ++_)if (o[_]in n) {
                p += "<dl>", p += "<dt>" + o[_] + "</dt>";
                for (var d = 0; d < n[o[_]].length; ++d) {
                    var g = n[o[_]][d];
                    p += "<dd onclick=\"B_Jump._go('base','" + B_Jump._getUrl("light") + "?g=" + g.project_id + "')\">" + g.project_name + "</dd>"
                }
                p += '</dl><div class="clearfix"></div>'
            }
        } else p = B_Pre._empty("没有找到！");
        l.find("*").unbind().removeData(), l.html(p)
    }, _letter: function (t) {
        var i = t.html();
        return "0-9" == i ? "0123456789" : i
    }, _menuHotGame: function (t, i) {
        var e = {};
        e.index = t, e.limit = i, e = B_Common._postData(e), B_Port._ajax("hotGame", "get", !0, e, function () {
            $(".h_qkList").html(B_Pre._loading())
        }, function () {
            $(".h_qkList").html("")
        }, function (t, i) {
            if (t && t.hot_project_list.length > 0) {
                var e = "", a = B_Game._getGame(t.hot_project_list);
                if (a)for (var l = 0; l < t.hot_project_list.length; l++)if (a[t.hot_project_list[l]]) {
                    var o = t.hot_project_list[l], s = a[t.hot_project_list[l]], r = s[1].length > 15 ? s[1].substr(0, 15) + "." : s[1], n = s[2] ? s[2].length > 15 ? s[2].substr(0, 15) + "." : s[2] : "";
                    e += "                                    <dl onclick=\"B_Jump._go('base','" + B_Jump._getUrl("light") + "?g=" + o + '\')">                                        <img src="' + s[0] + '">                                        <dt title="' + s[1] + '">' + r + '</dt>                                        <dd title="' + s[2] + '">' + n + "</dd>                                    </dl>"
                }
                $(".h_qkList").html(e)
            }
        }, function (t, i, e) {
            $(".h_qkList").html(B_Pre._empty(i))
        })
    }, _menuHistoryList: function () {
        B_Port._ajax("history", "get", !0, null, function () {
            $("#bs_history").html(B_Pre._loading())
        }, function () {
            $("#bs_history").html("")
        }, function (t, i) {
            if (t && t.project_list.length > 0) {
                var e = "", a = B_Game._getGame(t.project_list);
                if (a)for (var l = 0; l < t.project_list.length; l++)if (a[t.project_list[l]]) {
                    var o = t.project_list[l], s = a[t.project_list[l]], r = s[1].length > 15 ? s[1].substr(0, 15) + "." : s[1], n = s[2] ? s[2].length > 15 ? s[2].substr(0, 15) + "." : s[2] : "";
                    e += "                                    <dl onclick=\"B_Jump._go('base','" + B_Jump._getUrl("light") + "?k=" + o + '\')">                                        <img src="' + s[0] + '">                                        <dt title="' + s[1] + '">' + r + '</dt>                                        <dd title="' + s[2] + '">' + n + "</dd>                                    </dl>"
                }
                $("#bs_history").html(e)
            }
        }, function (t, i, e) {
            $("#bs_history").html(B_Pre._empty(i))
        })
    }, _menuGuessLikeList: function (t, i) {
        var e = {};
        e.project_id = B_Game._getLast("outsideGameDetail"), e = B_Common._postData(e), B_Port._ajax("guessLike", "get", !0, e, function () {
            $("#bs_favorite").html(B_Pre._loading())
        }, function () {
            $("#bs_favorite").html("")
        }, function (t, i) {
            if (t && t.get.length > 0) {
                for (var e = "", a = [], l = 0; l < t.get.length; l++)a.push(t.get[l].project_id);
                var o = B_Game._getGame(a);
                o && $.each(o, function (t, i) {
                    var a = i[1].length > 15 ? i[1].substr(0, 15) + "." : i[1], l = i[2] ? i[2].length > 15 ? i[2].substr(0, 15) + "." : i[2] : "";
                    e += "                            <dl onclick=\"B_Jump._go('base','" + B_Jump._getUrl("light") + "?k=" + t + '\')">                                <img src="' + i[0] + '">                                <dt title="' + i[1] + '">' + a + '</dt>                                <dd title="' + i[2] + '">' + l + "</dd>                            </dl>"
                }), $("#bs_favorite").html(e)
            }
        }, function (t, i, e) {
            $("#bs_favorite").html(B_Pre._empty(i))
        })
    }, _menuCollectList: function () {
        B_Collects && B_Collects.length > 0 ? S_Game._htmlMenuCollectList(B_Collects) : S_Game._getCollect("menu")
    }, _getCollect: function (t) {
        B_User._isDemoUser() || B_Port._ajax("collect_all", "get", !0, null, null, null, function (i, e) {
            if (B_Collects = i && i.collection_list ? i.collection_list : [], t)switch (t) {
                case"menu":
                    S_Game._htmlMenuCollectList(B_Collects)
            }
        }, function (t, i, e) {
            B_Collects = []
        })
    }, _htmlMenuCollectList: function (t) {
        if (t) {
            var i = "", e = B_Game._getGame(t);
            e && $.each(e, function (t, e) {
                var a = e[1].length > 15 ? e[1].substr(0, 15) + "." : e[1], l = e[2] ? e[2].length > 15 ? e[2].substr(0, 15) + "." : e[2] : "";
                i += "                            <dl onclick=\"B_Jump._go('base','" + B_Jump._getUrl("light") + "?k=" + t + '\')">                                <img src="' + e[0] + '">                                <dt title="' + e[1] + '">' + a + '</dt>                                <dd title="' + e[2] + '">' + l + "</dd>                            </dl>"
            }), $("#bs_collect").html(i)
        }
    }
}, S_Article = {
    _detailUrl: function (t) {
        return B_Jump._getUrl("detail") + "?t=" + B_Common._encodeUrl(t)
    }, _previewImg: function (t, i) {
        if (t && "" != t) {
            var e = ["sfw", "n178", "youxiputao", "youxicheng", "wankr", "n07073", "candou", "gametanzi"];
            return ($.inArray(i, e) > -1 || i.indexOf("公众号") >= 0) && B_Common._imgBuff([t]), '<img src="' + t + '">'
        }
        return '<img src="/img/article_no_img.jpg">'
    }, _init: function (t) {
        var i = B_Login._user;
        switch (t) {
            case"classify":
                return i && i.article_classify_dim ? i.article_classify_dim : [];
            case"source":
                return i && i.article_source_dim ? i.article_source_dim : []
        }
    }, _imgUrl: function (t) {
        switch (t) {
            case"公司":
                return {
                    img: "/img/mediarticle/company.png",
                    color: "#9DBF5E",
                    styleClass: "h_qkTb7",
                    position: "article_icon_company"
                };
            case"前沿":
                return {
                    img: "/img/mediarticle/front.png",
                    color: "#FDD644",
                    styleClass: "h_qkTb9",
                    position: "article_icon_leading"
                };
            case"研发":
                return {
                    img: "/img/mediarticle/research.png",
                    color: "#FF895A",
                    styleClass: "h_qkTb10",
                    position: "article_icon_research"
                };
            case"行业":
                return {
                    img: "/img/mediarticle/indus.png",
                    color: "#A9D443",
                    styleClass: "h_qkTb8",
                    position: "article_icon_industry"
                };
            case"电竞":
                return {
                    img: "/img/mediarticle/game.png",
                    color: "#ff9800",
                    styleClass: "h_qkTb5",
                    position: "article_icon_game"
                };
            case"人物":
                return {
                    img: "/img/mediarticle/person.png",
                    color: "#FDB040",
                    styleClass: "h_qkTb6",
                    position: "article_icon_people"
                };
            case"游戏":
                return {
                    img: "/img/mediarticle/other.png",
                    color: "#FDB040",
                    styleClass: "h_qkTb4",
                    position: "article_icon_other"
                };
            default:
                return {
                    img: "/img/mediarticle/other.png",
                    color: "#2da5df",
                    styleClass: "h_qkTb11",
                    position: "article_icon_other"
                }
        }
    }, _getClassify: function () {
        for (var t = S_Article._init("classify"), i = {}, e = 0; e < t.length; ++e)i[t[e].main_class] = {
            img: S_Article._imgUrl(t[e].main_class),
            sub: t[e].sub_class_list
        };
        return i["游戏"] = {img: S_Article._imgUrl("游戏"), sub: []}, i["其他"] = {img: S_Article._imgUrl("其他"), sub: []}, i
    }, _htmlList: function (t) {
        var i = "", e = "";
        return $.each(t, function (t, a) {
            var l = B_Jump._getUrl("article") + "?t=classify&m=" + encodeURIComponent(t);
            i += "<dl onclick=\"B_Jump._go('base','" + l + '\')"><dt class="' + a.img.styleClass + ' b_img"></dt><dd>' + t + "</dd></dl>", e += "<dl>";
            for (var o = 0; o < a.sub.length; o++)e += "<dd onclick=\"B_Jump._go('base','" + l + "&s=" + B_Common._encodeUrl(a.sub[o].sub_class) + "')\">" + a.sub[o].sub_class + "</dd>";
            e += "</dl>"
        }), {main: i, sub: e}
    }, _getSource: function (t) {
        if (t)for (var i = S_Article._init("source"), e = 0; e < i.length; e++)if (t == i[e].source)return i[e].source_name;
        return t
    }
}, S_Service = {
    _getData: function () {
        B_Port._ajax("itemList", "get", !0, null, function () {
            $("#bs_service_inside").html(B_Pre._loading("c_padding30")), $("#bs_service_outside").html(B_Pre._loading("c_padding30")), $("#bs_service_report").html(B_Pre._loading("c_padding30"))
        }, function () {
            $("#bs_service_inside").html(""), $("#bs_service_outside").html(""), $("#bs_service_report").html("")
        }, function (t, i) {
            t.item_map && !B_Common._checkObjectIsEmpty(t.item_map) && (t.item_map["游戏外数据服务"] && $("#bs_service_outside").html(S_Service._htmlItem(t.item_map["游戏外数据服务"])), t.item_map["游戏内数据服务"] && $("#bs_service_inside").html(S_Service._htmlItem(t.item_map["游戏内数据服务"])), t.item_map["深度定制分析报告"] && $("#bs_service_report").html(S_Service._htmlItem(t.item_map["深度定制分析报告"])))
        }, function (t, i, e) {
            $(".bs_service_inside").html(B_Pre._empty(i)), $(".bs_service_outside").html(B_Pre._empty(i)), $(".bs_service_report").html(B_Pre._empty(i))
        })
    }, _htmlItem: function (t) {
        for (var i = "", e = 0; e < t.length && !(e > 5); e++)i += "<dl onclick=\"B_Jump._go('base','" + B_Jump._getUrl("item") + "?k=" + t[e].item_id + "')\"><dt>" + t[e].item_name + "</dt><dd>" + t[e].item_slogan + "</dd></dl>";
        return i
    }
};